package com.wy.android.mp.location;

import java.util.ArrayList;

import android.graphics.drawable.Drawable;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

/**
 * 图层标志类
 * */

public class MyPositionItemizedOverlay extends ItemizedOverlay {
	
	private ArrayList<OverlayItem> myOverlays=new ArrayList<OverlayItem>();

	public MyPositionItemizedOverlay(Drawable defaultMarker) {
		super(boundCenterBottom(defaultMarker));
		// TODO Auto-generated constructor stub
	}
	
   public void addOverlay(OverlayItem item){
	   myOverlays.add(item);
	   populate();
	   //展示出来
	   
   }
	

	@Override
	protected OverlayItem createItem(int i) {
		
		return myOverlays.get(i);
	}

	@Override
	public int size() {
		
		return myOverlays.size();
	}

}
